# Contributor:
# Maintainer: nadvagauser <nadvagauser+alpine@proton.me>
pkgname=solanum
pkgver=3.0.1_git20220607
_gitrev=6869e48970e621c5c1a9942ce0baa24ada3392de
pkgrel=1
pkgdesc="A pomodoro timer for the GNOME desktop"
url="https://gitlab.gnome.org/World/Solanum"
arch="all !s390x !riscv64" # GTK4
license="GPL-3.0-or-later"
makedepends="
	blueprint-compiler
	cargo
	glib-dev
	gst-plugins-bad-dev
	gstreamer-dev
	gtk4.0-dev
	libadwaita-dev
	meson
	"
checkdepends="
	appstream-glib
	desktop-file-utils
	"
subpackages="$pkgname-lang"
source="
	https://gitlab.gnome.org/World/Solanum/-/archive/$_gitrev/Solanum-$_gitrev.tar.gz
	10-gio-types.patch
	appdata.patch
	"
builddir="$srcdir/Solanum-$_gitrev"


build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
6f6cc33be29c5419e12bb5e260b69e74c9b8c00c713c449351f284fcdc6b057b3fc2fd12fcd7552cd0856ba4e999f2efa85f89d07ed3d0e1e4332c95af3fac1c  Solanum-6869e48970e621c5c1a9942ce0baa24ada3392de.tar.gz
d48dc043836600622321d655db725da667a8fca9aa0e5010f6fbb5aff4b6e37e0d14ac8f071631d70a897583919b5ce77bd3519a96b0fe4bf00765eecce01307  10-gio-types.patch
f319268c921d72e186ad8c07267bb8f7ffe2af961e1687e116403dffc5c8e098f8780b99a60caa79561fe8a204beebc269d3cd9f888ca18a0960043269fd30d4  appdata.patch
"
